When QuickTime VR calls an intercept procedure, it passes the procedure information about the intercepted function and the parameters for that function in an intercept record. An intercept record is defined by the QTVRInterceptRecord data type:
typedef UInt32 QTVRProcSelector;
struct QTVRInterceptRecord {
SInt32 reserved1;
SInt32 selector;
SInt32 reserved2;
SInt32 reserved3;
SInt32 paramCount;
void * parameter[6];
};
typedef struct QTVRInterceptRecord QTVRInterceptRecord;
typedef QTVRInterceptRecord *QTVRInterceptPtr;
The QuickTime VR Manager internally stores all angle measurements in radians, and any angular parameters returned in the parameter field of an intercept structure are expressed in radians. In addition, a parameter of type float (for example, the panAngle parameter to the QTVRSetPanAngle function) is passed in the parameter field as a value of type *float .
| Previous | Chapter Contents | Chapter Top | Next |